#include <iostream>
#include"../mem_op2/mem_util.h"
using namespace std;

int main()
{
    cout << "Hello World!" << endl;

    xy::File f(L"test5.txt");
    char s[] = "12345ABC";
    cout << sizeof (s) << endl;
    cout << "write: " << s <<endl;
    cout << f.write((LPVOID)s,sizeof(s)) << endl;
    f.rewind();
    char d[sizeof(s)];
    cout << f.read(d,sizeof(d)) << endl;
    cout << "read: " << d << endl;


    return 0;
}
